package com.arunsawad.ilertu.common;

public class Constants {
	public static final String DEVICE_ID = android.os.Build.FINGERPRINT;
	public static final String DEVICE_TYPE = "android";
	public static final String DEVICE_VERSION = android.os.Build.VERSION.RELEASE;
	// public static final String LANGUAGE = Locale.getDefault().getLanguage();
	public static final String DATABASE_NAME = "ILUDB";
	public static final int DATABASE_VERSION = 1;
	public static final int USER_IMAGE_WIDTH = 128;
	public static final int USER_IMAGE_HEIGHT = 128;
	public static final int LERT_IMAGE_WIDTH = 800;
	public static final int LERT_IMAGE_HEIGHT = 600;
	public static final int RECORDS_PER_PAGE = 20;
	public static final String TEMP_IMAGE = "ilu_temp_photo_img.jpg";

	/*--PREF--*/
	public static final String PREF_FILE = "pref_ilu";
	public static final String PREF_USER_ID = "pref_user_id";
	public static final String PREF_USER_NAME = "pref_user_name";
	public static final String PREF_PASSWORD = "pref_password";
	public static final String PREF_LANGUAGE = "language";

	public static final String MSG = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
			+ "<lertParams type=\"%s\">"
			+ "	<common>"
			+ "		<device>"
			+ "			<deviceType>"
			+ DEVICE_TYPE
			+ "</deviceType>"
			+ "			<deviceId>"
			+ DEVICE_ID
			+ "</deviceId>"
			+ "			<currentVersion>"
			+ DEVICE_VERSION
			+ "</currentVersion>"
			+ "		</device>"
			+ "		<authen>"
			+ "			<username>%s</username>"
			+ "			<password>%s</password>"
			+ "		</authen>"
			+ "		<lastedUpdateDate/>"
			+ "		<language>"
			+ "%s"
			+ "</language>"
			+ "	</common>" + "%s" + "</lertParams>";

	/*--SERVICES URL--*/
	public static final String URL_SIGN_IN = "http://ilerturest.cloudapp.net/hybrid/user/sign-in";
	public static final String URL_SIGN_OUT = "http://ilerturest.cloudapp.net/hybrid/user/sign-out";
	public static final String URL_SIGN_UP = "http://ilerturest.cloudapp.net/hybrid/user/sign-up";
	public static final String URL_GET_PROFILE = "http://ilerturest.cloudapp.net/hybrid/user/get";
	public static final String URL_UPDATE_PROFILE = "http://ilerturest.cloudapp.net/hybrid/user/update";
	public static final String URL_UPDATE_PASSWORD = "http://ilerturest.cloudapp.net/hybrid/user/password/change";
	public static final String URL_RESET_PASSWORD = "http://ilerturest.cloudapp.net/hybrid/user/password/reset";
	public static final String URL_GET_REGISTERED_SERVICE = "http://ilerturest.cloudapp.net/hybrid/user/services/get";
	public static final String URL_GET_REGISTERED_SERVICES = "http://ilerturest.cloudapp.net/hybrid/user/services/list";
	public static final String URL_GET_CATEGORIES = "http://ilerturest.cloudapp.net/hybrid/services/categories/list";
	public static final String URL_GET_SERVICE = "http://ilerturest.cloudapp.net/hybrid/services/get";
	public static final String URL_GET_SERVICES = "http://ilerturest.cloudapp.net/hybrid/services/list";
	public static final String URL_ADD_SERVICE = "http://ilerturest.cloudapp.net/hybrid/user/services/add";
	public static final String URL_DELETE_SERVICE = "http://ilerturest.cloudapp.net/hybrid/user/services/delete";
	public static final String URL_LERT = "http://ilerturest.cloudapp.net/hybrid/lerts/add";
	public static final String URL_GET_LERT = "http://ilerturest.cloudapp.net/hybrid/lerts/get";
	public static final String URL_GET_LERTS = "http://ilerturest.cloudapp.net/hybrid/lerts/list";
}
